﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="ConversionTables.aspx.vb" Inherits="Staarship.ConversionTables" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        Conversion category:
        <asp:DropDownList ID="ddl_Category" runat="server" AutoPostBack="True" DataSourceID="CategoryDataSource" DataTextField="UnitType" DataValueField="UnitType">
            
        </asp:DropDownList>
        <asp:SqlDataSource ID="CategoryDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:StaarshipConnectionString %>" ProviderName="<%$ ConnectionStrings:StaarshipConnectionString.ProviderName %>" SelectCommand="SELECT [UnitType] FROM [Categories]"></asp:SqlDataSource>
    </p>
    <p>
        <asp:Label ID="lbl_From" runat="server" AssociatedControlID="tb_From" Text="From"></asp:Label>
    </p>
    <p>
        <asp:TextBox ID="tb_From" runat="server" Text="1" AutoPostBack="True"></asp:TextBox>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:DropDownList ID="ddl_FromUnit" runat="server" AutoPostBack="True">
        </asp:DropDownList>
    </p>
    <p>
        &nbsp;</p>
    <p>
        <asp:Label ID="lbl_To" runat="server" AssociatedControlID="tb_ToUnit" Text="To"></asp:Label>
    </p>
    <p>
        <asp:TextBox ID="tb_ToUnit" runat="server" AutoPostBack="True">1</asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:DropDownList ID="ddl_ToUnit" runat="server" AutoPostBack="True">
        </asp:DropDownList>
    </p>
    <p>
        &nbsp;</p>
    <p>
        <asp:Label ID="lbl_Result" runat="server"></asp:Label>
    </p>
    </asp:Content>
